//
//  User.m
//  weibo110
//
//  Created by 臧松 on 15/12/30.
//  Copyright © 2015年 臧松. All rights reserved.
//

#import "User.h"

@implementation User

-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}
+(instancetype)userWithDict:(NSDictionary *)dict{
    
    return [[self alloc]initWithDict:dict];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{}
-(NSString *)description{
    NSArray * keys = @[@"id",@"screen_name",@"profile_image_url",@"verified_type",@"mbrank"];
    
    return [self dictionaryWithValuesForKeys:keys].description;
}
@end
